%*******************************************************************************
%	
%	Copyright (c) 2009 Philip Wenig
%
%	Unless otherwise specified, this work is licensed under a 
%	Creative Commons Attribution-Share Alike 3.0 License.
%
%	http://creativecommons.org/licenses/by-sa/3.0/
%
%	Contributors:
%		Philip Wenig
%
%*******************************************************************************

%
%	DOCUMENT report, PAPER A4, FONT 12pt
%
\documentclass[a4paper,12pt]{report}

%
%	TO DECLARE IF THEN ELSE.
%
\usepackage{ifthen}

%
%	USE THE IFPDF PACKAGE.
%	\ifpdf
%		. . . do things, if pdfTEX is running in pdf mode . . .
%	\else
%		. . . other TEX or pdfTEX in dvi mode . . .
%	\fi
%
\usepackage{ifpdf}

%
%	LAYOUT
%
\usepackage[german]{layout}

%
%	LANGUAGE AND ENCODING
%
\usepackage[T1]{fontenc}
%\usepackage[latin1]{inputenc}
\usepackage[utf8]{inputenc}				
\usepackage[german]{babel,varioref}
%\usepackage[english]{babel,varioref}
%\usepackage{ucs}

\usepackage[right]{eurosym}

%
% USE HYPHENATION
%
\usepackage{hyphenat}
\include{./include/hyphenation}

\usepackage{units}

%
%	LITERATURE AND BIBLIOGRAPHY (JabRef [http://jabref.sourceforge.net] Open-Source to manage your citations)
%	
%	\citet{xx} or \citet[S.245]{xx}
%	\citep{xx} or \citep[S.245]{xx}
%
%	\usepackage[round,comma]{natbib} - another style
%	\usepackage[square,comma]{natbib} - another style
%
\usepackage{bibgerm}
\usepackage[numbers]{natbib}
\bibliographystyle{plainnat}

%
%	PAGE- AND PARAGRAPHDESIGN
%
\clubpenalty = 10000
\widowpenalty = 10000
\displaywidowpenalty = 10000
\setlength{\parindent}{0pt}

%
%	PAGE ALIGNMENT LANDSCAPE
%
\usepackage{lscape}


%
%	BLINDTEXT
%
\usepackage{blindtext}

%
%	HEADER AND FOOTER
%
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\setlength\headheight{14.5pt}
\fancyhead[C]{\scshape\leftmark}
\fancyfoot[C]{\thepage}
\usepackage{fancyvrb}

\usepackage{float}

%
%	INCLUDE CODE
%
\usepackage{listings}
\lstloadlanguages{C,JAVA,TeX}

%
%	ABBREVIATIONS
%
\usepackage{nomencl}
\makenomenclature

%
%	LABELS
%
\usepackage[hypcap=false]{caption}

%
%	INDICES
%
\usepackage{makeidx}
\makeindex

%
%	COLORS
%
\usepackage{color}

%
%	TABLES
%
\usepackage{array}
\usepackage{tabularx}
\usepackage{tabulary}
\usepackage{supertabular} % There are problems with supertabular and tex4ht, use in case \ifpdf
%\usepackage{colortbl} % There are problems with colortbl and tex4ht
\usepackage{multirow}
\usepackage{booktabs}


%
%	GRAPHICS
%
\usepackage{picinpar}																	
\usepackage{subfigure}
\usepackage{graphicx}

%
%	CONVERTS EPS TO PDF AUTOMATICALLY
%	It should do it if shell escaping is enables.
%	But this is a security risk.
%	So take care that all eps figures are converted.
%
%\usepackage{epstopdf}
%\epstopdfsetup{update,prepend,verbose}

%
%	FORMULA
%
%\usepackage{fleqn}
%\mathindent2cm
%\usepackage{leqno}


%
% CHEMICAL FORMULA
% EXAMPLES:
% \ce{H2O}, $\ce{H2O}$
% \ce{Ce^{IV}}
%
\usepackage[version=3]{mhchem}


%
%	TABLE OF CONTENTS
%
\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{5}

%
%	YOUR OWN COMMANDS, SHORTCUTS AND VARIABLES 
%
\include{./customize/commands}
\include{./customize/shortcuts}
\include{./customize/variables}




%
% 	The pdf_packages.tex will be included only if a pdf compiler is used.
%	Don't set usepdf to true if you would like to create an open office document via htlatex.
%	You can set usepdf to true at the end of your work, if there is no more need to convert this latex document.
%	Set usepdf to true if you want to use the pdf functionality.
%
\ifpdf
	\include{./customize/pdf_packages}
\fi

%
%	ACTIVE REFERENCES
%	It's very important to be included last package, otherwise there will be a warning.
%
\usepackage[plainpages=false,hypertexnames=false,pdfpagelabels]{hyperref}

%
% If a pdf compiler is used, some additional pdf information will be written.
%
\ifpdf
	\hypersetup{%
		pdftitle={\TITLE},%
		pdfauthor={\AUTHOR},%
		pdfkeywords={\KEYWORDS}%	
	}%
\fi

%---------------------------------------------------------------
%
%	BEGIN OF DOCUMENT
%
%---------------------------------------------------------------
\begin{document}

	%
	% You can display your actual layout by uncommenting \layout.
	% The line and textwidth can also be printed to screen or document.
	%
	% \layout
	% \show\linewidth, \show\textwidth > to screen
	% \the\linewidth, \the\textwidth > to document

	% You can set a watermark here (applicable only in pdf mode).
	\ifpdf
		\setWatermark{PROOF}
	\fi
	
	\include{./include/cover}
	\include{./include/affirmation}
	\include{./include/abbreviations}
	\include{./include/toc}
	\include{./include/introduction}
	\include{./include/general}
	\include{./include/special}
	\include{./include/summary}
	\include{./include/bibliography}
	\include{./include/lists}
	\include{./include/appendix}
	\include{./include/index}

\end{document}
